package com.engineering.elink.interceptor;
/**
 * 例外,不需要过滤或拦截的请求
 *
 */
public class Except {
	static String[] resources={"/api/chapter/getCourseCatalog","/api/course/getList","/api/course/getHotCourse",
		"/api/course/getSameCourse","/api/course/getTeacherList","/api/coursetype/getCourseType","/api/coursetype/deleteCourseType",
		"/api/coursetype/updateCourseType","/api/cvdatabase/getJobStatus","/api/cvdatabase/getCardType","/api/cvdatabase/getPoliticalStatus",
		"/api/cvdatabase/getCompanyGuild","/api/cvdatabase/updateOpen","/api/cvdatabase/getCompanyScale","/api/cvdatabase/getCompanyNature",
		"/api/cvdatabase/deleteWorkExp","/api/cvdatabase/deleteEduExp","/api/cvdatabase/deleteProExp","/api/cvdatabase/getSalaryCount",
		"/api/cvdatabase/getCvdDeliveryList","/api/cvdatabase/batchMoveCvd","/api/cvdatabase/getCvdCollectionList","/api/cvdatabase/batchUpdateCvdStatus",
		"/api/cvdatabase/batchUpdateCvdType","/api/cvdatabase/getSearchCvdList","/api/enginhome/getEnginCourse","/api/enginhome/getEnginFile","/api/enginhome/getEnginLibrary",
		"/api/enginhome/getEnginNews","/api/enginhome/getEnginPostBar","/api/enginhome/getExclusive","/api/enginhome/getProfePlann","/api/enroll/getCourseEnroll",
		"/api/evaluate/getTopEvaluatesByCourseId","/api/evaluate/getAllByTopId","/api/evaluate/getAllEvaluatesByTopId","/api/job/getJobNature",
		"/api/job/getJobEducation","/api/job/getJobExperience","/api/job/getFuncDetailCategory","/api/job/getFunctionsTopCategory","/api/job/getLanguage",
		"/api/job/getLanguageGrade","/api/job/getMajorScByMdcId","/api/job/getMajorTopCategory","/api/job/getProfessionalByMscId","/api/job/pause","/api/job/refreshJob",
		"/api/job/deleteJob","/api/job/getList","/api/job/getCompanyJob","/api/job/getSameJob","/api/job/getJobList","/api/job/getKeyWord","/api/plannhier/getCareerPlann",
		"/api/plannhier/getCourse","/api/plannhier/getFile","/api/plannhier/getList","/api/plannhier/getSkill","/api/practice/getSecondaryCategory",
		"/api/practice/getThirdCategory","/api/practice/getTopCategory","/api/skillcategory/getTopCategory","/api/skill/getDownLoadRank","/api/skill/getKeyWord",
		"/api/skill/getList","/api/skill/getSameFile","/api/skill/getSigleSkillFile","/api/skill/getSigleSkillVideo","/api/skillevaluate/getAllByTopId",
		"/api/skillevaluate/getAllEvaluatesByTopId","/api/skillevaluate/getTopEvaluatesByCourseId","/api/videocategory/getSecondaryCategory","/api/videocategory/getThirdCategory",
		"/api/videocategory/getTopCategory","/api/videocomment/getAllByTopId","/api/videocomment/getAllCommentsByTopId","/api/videocomment/getTopCommentsByVideoId","/api/video/getSameVideo"};
	
	/**
	 * 判断url是否是例外
	 * @param url
	 * @return
	 */
	static boolean isExcept(String url){
		boolean flag=false;
		for(String r:resources){
			if(url!=null&&url.endsWith(r)){
				flag=true;
				break;
			}
		}
		return flag;
	}
}
